//
//  ViewController.m
//  SBAdaptiveTool
//
//  Created by user on 2018/9/10.
//  Copyright © 2018年 陈振旭. All rights reserved.
//

#import "ViewController.h"
#import "UIView+AutoLayoutAdaptive.h"

@interface ViewController ()
@property (weak, nonatomic) IBOutlet UIView *topView;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    
    
    
    
}

- (void)viewDidLayoutSubviews {
    [super viewDidLayoutSubviews];
    
    [UIView forFitSubViews:self.view];
    
//    NSLog(@"----%@\n==========%@",_topView.constraints,self.view.constraints);
    
    for (NSLayoutConstraint *constraint in _topView.constraints) {
//        NSLog(@"firstItem:%@ \nfirstAttribute:%ld \n secondItem:%@ \n secondAttribute:%ld \n identifier:%@ \n constant:%f",constraint.firstItem,
//              (long)constraint.firstAttribute,
//              constraint.secondItem,
//              (long)constraint.secondAttribute,
//              constraint.identifier,
//              constraint.constant);
    }
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
